<?php
namespace app\operator\validate;
use think\Validate;
class Operator extends Validate
{

    protected $rule=[
        'identifying'=>'require',
        'name'=>'require',
        'password'=>'require',
    ];


    protected $message=[
        'identifying.require'=>'企业标识不能为空！',
        'name.require'=>'用户名不能为空！',
        'password.require'=>'密码不能为空！',
    ];

    protected $scene=[
        'add'=>['identifying','name','password'],
        'edit'=>['identifying','name','password'],
    ];
}